home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lantools
/
lanscrpt
/
lanscrpt.doc
< prev
next >
Wrap
Text File
|
1992-08-18
|
3KB
|
45 lines
Using Lantastic's macros and the dos enviroment to accomplish a standard
interface to your network:
By Ken Thompson
Lantastic user and fan.
I was asked to do this by a user on the ARTIFACTS BBS, so that Lantastic users
could be given a standard interface no matter what station that they logged in
from. It tends to emulate the scripts found in that other network in the big
red box. Having worked on a few of them, (yeech) I found the system script and
the users script to be handy items. I wondered if the same thing could be inte-
grated into a Lantastic network. The problem comes when you attempt to access
the user's name and the station name in the Lantastic programs. They refused
to give up the user_name variable. So when Lantastic 4.1 came out, and there
appeared the !"user" macro and the !"machine_id" macro, I was estatic. Now, I
could use these macros and the net string command to set up enviroment variables
to configure the network to my liking. If you will study the batch files included
with this file, you too can accomplish this. It really makes the network much
easier to administer.
A few notes are in order:
I use Lantastic 4.1. I don't remember if the same macros are in 4.00 or 3.XX.
I also use the 4dos command shell on all machines. This is a test to see if
all the software that I use is compatible with 4dos (Lotus 123 v.3.1, Wordstar,
Quattro Pro, and several menuing packages). I love 4dos! The configuration is
much more manageable that plain old DOS. It has much better features than DOS.
And you can load all of it (execpt 256 bytes, yes bytes) into high memory.
Unfortunatly, some of the features used in the batch files are not available
with plain DOS. The system batch file has a section that has an .and. statement
in it. This part will not work with plain dos, but if you are goo enough, you
can subdivide the batch file further to test all conditions one by one. This will
accomplish the same thing, just not as fast. (actually, this is how the batch
file started, but then I discovered the .and. portion of 4dos).
If you have problems getting the batch files to work, first try to put enough
pauses into the batch files so that you can break out of the batch file with a
^C (CTRL-C) and check the enviroment variables. If you still can't figure it out,
try drawing a diagram of the batch file with labels of the enviroment variables
in their appropriate places. Lastly, if you still can't find the problem, u/l
the offending code to the ARTIFACTS BBS, and leave me a note. Just like Penn
Jillette, I can't program, but Damnit, I can write a batch file! I can usually
find the error and correct it.